# Maintainer: Hugo Rodrigues <hugorodrigues@hugorodrigues.xyz>
pkgname=apt-mirror
pkgver=0.5.4
pkgrel=0
pkgdesc="A small tool that provides ability to mirror APT repositories"
url="https://apt-mirror.github.io/"
arch="noarch"
license="GPL-2.0-only"
depends="perl wget"
# NB: Upstream doesn't provide integration tests
options="!check"
subpackages="
	$pkgname-doc
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/apt-mirror/apt-mirror/archive/refs/tags/$pkgver.tar.gz"

package() {
	DESTDIR="$pkgdir" PREFIX="/usr" make install
}

sha512sums="
4fad124d1a7db55e77cf1acac138d68e82dfc70621014bc67a8003bc33988c668d77be18f7497c4c4faf10c99599f14612fb5535db43147a3f98ce9a660557be  apt-mirror-0.5.4.tar.gz
"
